package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.AttendGoOutRuleExample.E_COLLECT_END_TIME;
import static org.jsola.hr.example.AttendGoOutRuleExample.E_COLLECT_START_TIME;
import static org.jsola.hr.example.AttendGoOutRuleExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendGoOutRuleExample.E_COMPANY_NAME;
import static org.jsola.hr.example.AttendGoOutRuleExample.E_IS_ALLOW_LOCATION_PHOTO;
import static org.jsola.hr.example.AttendGoOutRuleExample.E_IS_TAKE_PHOTO;
import static org.jsola.hr.example.AttendGoOutRuleExample.M_COLLECT_END_TIME_MAX;
import static org.jsola.hr.example.AttendGoOutRuleExample.M_COLLECT_START_TIME_MAX;
import static org.jsola.hr.example.AttendGoOutRuleExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendGoOutRuleExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.AttendGoOutRuleExample.N_COLLECT_END_TIME;
import static org.jsola.hr.example.AttendGoOutRuleExample.N_COLLECT_START_TIME;
import static org.jsola.hr.example.AttendGoOutRuleExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendGoOutRuleExample.N_COMPANY_NAME;
import static org.jsola.hr.example.AttendGoOutRuleExample.N_IS_ALLOW_LOCATION_PHOTO;
import static org.jsola.hr.example.AttendGoOutRuleExample.N_IS_TAKE_PHOTO;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【外出打卡规则】的参数")
@Data
public class AttendGoOutRuleUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_COLLECT_START_TIME, example = E_COLLECT_START_TIME)
    @Length(max = 10, message = M_COLLECT_START_TIME_MAX)
    private String collectStartTime;

    @ApiModelProperty(notes = N_COLLECT_END_TIME, example = E_COLLECT_END_TIME)
    @Length(max = 10, message = M_COLLECT_END_TIME_MAX)
    private String collectEndTime;

    @ApiModelProperty(notes = N_IS_TAKE_PHOTO, example = E_IS_TAKE_PHOTO)
    private Integer isTakePhoto;

    @ApiModelProperty(notes = N_IS_ALLOW_LOCATION_PHOTO, example = E_IS_ALLOW_LOCATION_PHOTO)
    private Integer isAllowLocationPhoto;


}

